/*
 * Copyright rgil2010
 * All rights reserved
 */

package com.totoBD.gui.swing.components.dialog;

import java.awt.Frame;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

/**
 *
 * @author user
 */
public class DlgConLoginAsRoot extends DlgConLoginAbs implements ActionListener{
    public DlgConLoginAsRoot(Frame parent, boolean modal) throws Exception{
        super("Login as root", "Enter root password :", parent, modal);

    }

    @Override
    protected boolean _doJob() throws Exception {
        String strPassword = super.txfDataBaseName.getText();
        this._dbConnection_.connect("", "root", strPassword);
        return true;
    }

    @Override
    public void actionPerformed(ActionEvent e) {
       super.actionPerformed(e);
    }
}
